package com.yangjunli.bishe.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author jobob
 * @since 2020-04-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("Bbs_Article")
public class BbsArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer artUserId;

    /**
     * 标题
     */
    private String artTitle;

    /**
     * 类型id
     */
    private Integer artTypeId;

    /**
     * 正文
     */
    private String artContent;

    /**
     * 创建时间
     */
    private LocalDateTime artCreTime;

    /**
     * 浏览量
     */
    private Integer artView;

    /**
     * 评论数
     */
    private Integer artComNum;

    /**
     * 点赞数
     */
    private Integer artLikeNum;

    private String imageUrl;

    @TableField(exist=false)
    private List<Comment> comment;

}
